public class text {
    public static void main(String[] args) {
        int i=1;
        while(i<=10) {
            System.out.println(i);
            i++;
        }
    }

    public static void main2(String[] args) {
        String a="hello";
        switch (a){
            case "hello":
                System.out.println("world");
                break;
            case "he":
                System.out.println("No");
                break;
            default:
                System.out.println("fault");
                break;
        }
    }
    public static void main1(String[] args) {
        int day=1;
        switch(day){
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            default:
                System.out.println("星期日");
                break;


        }
    }
}
